package com.oa.hyperion.repository;

import com.oa.hyperion.entity.Role;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface PostRoleMapper {
    @Select("select r.* from role r,post_role_merge pr where pr.role_id = r.id and r.id =#{id}")
    List<Role> findRoleByPost(int id);

}
